import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app'
import settings from './modules/settings'
import user from './modules/user'
import permission from './modules/permission'
import parameter from './modules/parameter'
import common from './modules/common'
import issue from './modules/issue'

const store = new Vuex.Store({
  modules: {
    app,
    settings,
    user,
    permission,
    common,
    issue,
    parameter
  },
  getters
})

export const setupStore = (app) => {
  app.use(store)
}


export default store
